package com.lemon.cloud.websocket.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author HuangDS
 */
@ConfigurationProperties(WebSocketProperties.PREFIX)
@Data
public class WebSocketProperties {


    public static final String PREFIX = "websocket";

    /**
     * 通信的接口
     */
    private String path = "/ws/info";

    private String allowOrigins = "*";

    /**
     * 心跳检测
     */
    private boolean heartbeat = true;

    /**
     * 消息分发
     */
    private String messageDistributor = "redis";
}
